package sensors;

import robots.OwnGhost;

public abstract class Sensor {
	/**
	 * A link to the robot that uses this Sensor
	 */
	private OwnGhost ghost;
	
	/**
	 * Creates a new Sensor given the robot to which it belongs.
	 * 
	 * @param ghost
	 * 			The robot to which this Sensor belongs
	 */
	public Sensor(OwnGhost ghost){
		setGhost(ghost);
	}

	public OwnGhost getGhost() {
		return ghost;
	}

	private void setGhost(OwnGhost ghost) {
		this.ghost = ghost;
	}
}
